package com.demo.starter.repository;

import com.demo.starter.entity.EstNewsType;
import com.demo.starter.entity.EstNewsTypeExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EstNewsTypeMapper {
    long countByExample(EstNewsTypeExample example);

    int deleteByExample(EstNewsTypeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(EstNewsType record);

    int insertSelective(EstNewsType record);

    List<EstNewsType> selectByExample(EstNewsTypeExample example);

    EstNewsType selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") EstNewsType record, @Param("example") EstNewsTypeExample example);

    int updateByExample(@Param("record") EstNewsType record, @Param("example") EstNewsTypeExample example);

    int updateByPrimaryKeySelective(EstNewsType record);

    int updateByPrimaryKey(EstNewsType record);
}